from sklearn.model_selection import train_test_split
from sklearn.datasets import load_iris

data = load_iris()
x = data.data
y = data.target

x_train, x_test, y_train, y_test = train_test_split(x, y, train_size=0.7)
print(x.shape, y.shape)
print(x_train.shape, y_train.shape)
print(x_test.shape, y_test.shape)
